<template>
  <div class="container">home</div>
</template>

<script>
// 测试axios封装
import request from '../../utils/request'
export default {
  name: 'home-index',
  // created发请求
  created () {
    // 测试axios封装 获取信息
    request({ url: 'announcements' }).then(res => {
      console.log('页面获取到的res:', res)
    })
  }
}
</script>

<style scoped lang='less'></style>
